package gkaylee

import (
	"net/http"
	"net/http/httptest"
)

// TestHttpRequest 快速构造response
func TestHttpRequest(req *http.Request, server http.Handler) (resp *http.Response) {
	rr := httptest.NewRecorder()
	server.ServeHTTP(rr, req)
	return rr.Result()
}
